
/**
 * The purpose of this class is to declare a car and its characters and functions
 * 
 * @author Shawn Rajput
 *
 */
public class Car {
	// state / fields / instance variables /
	String make;
	String model;
	int year;
	int maximumSpeed;
	int currentSpeed;
	String color;
	boolean hasStarted;
	
	void start()
	{
		System.out.println(" I am starting the car");
		hasStarted = true;
		
		currentSpeed = 0;
	}
	
	void stop()
	{
	
		System.out.println(" I am stopping the car");
		hasStarted = false;
		currentSpeed = 0;
	}
		
	void changeColor(String newColor)
	{
		color = newColor;
	}
	
	// Behaviors / Methods
	int accelrate(int howMuch)
	{
		currentSpeed = currentSpeed + howMuch;
		return currentSpeed;
	}
}
